package com.bingfor.easycablelink.account.viewmodel;

import android.databinding.ObservableInt;

import com.bingfor.easycablelink.base.BaseActivity;
import com.bingfor.easycablelink.widgets.ViewModel;

/**
 * Created by LY on 2017/5/17.
 */

public class MainViewModel implements ViewModel {

    private ObservableInt position = new ObservableInt(0);
    private BaseActivity mContext;

    public MainViewModel(BaseActivity mContext) {
        this.mContext = mContext;
    }

    public ObservableInt getPosition() {
        return position;
    }

    public void setPosition(int pos) {
        position.set(pos);
        position.notifyChange();
    }
}
